window.TYPE = {};
window.ATTRS = {
    id: {
        en: 'id',
        name: '控件Id',
        type: 'text'
    },
    fieldLabel: {
        en: 'fieldLabel',
        name: 'label名称',
        type: 'text'
    },
    labelWidth: {
        en: 'labelWidth',
        name: 'label宽度',
        type: 'number'
    },
    selectBackCode: {
        en: 'selectBackCode',
        name: '选择带回编号',
        type: 'text'
    },
    selectBackName: {
        en: 'selectBackName',
        name: '选择带回Name字段',
        type: 'text'
    },
    selectBackId: {
        en: 'selectBackId',
        name: '选择带回Id字段',
        type: 'text'
    },
    //目标字段
    selectBackTargetField: {
        en: 'selectBackTargetField',
        name: '目标字段',
        type: 'text'
    },
    //本地字段
    selectBackLocalField: {
        en: 'selectBackLocalField',
        name: '本地字段',
        type: 'text'
    },
    isSelectBack: {
        en: 'isSelectBack',
        name: '是否选择带回',
        type: 'checkbox'
    },
    name: {
        en: 'name',
        name: '属性名称',
        type: 'text'
    },
    type: {
        en: 'type',
        name: '控件类型',
        type: 'selectList',
        data: TYPE
    },
    x: {
        en: 'x',
        name: 'X坐标',
        type: 'number'
    },
    y: {
        en: 'y',
        name: 'Y坐标',
        type: 'number'
    },
    width: {
        en: 'width',
        name: '宽度',
        type: 'number'
    },
    height: {
        en: 'height',
        name: '高度',
        type: 'number'
    },
    value: {
        en: 'value',
        name: '默认值',
        type: 'text'
    },
    textAlign: {
        en: 'textAlign',
        name: '对齐方式',
        type: 'selectList',
        data: {
            left: {name: '左对齐'},
            right: {name: '右对齐'},
            center: {name: '居中对齐'},
        }
    },
    VAlign: {
        en: 'VAlign',
        name: '是否垂直居中',
        type: 'checkbox'
    },
    validator: {
        en: 'validator',
        name: '检验器',
        type: 'text'
    },
    dict: {
        en: 'dict',
        name: '字典',
        type: 'text'
    },
    redStar: {
        en: 'redStar',
        name: '红星标识',
        type: 'checkbox'
    },
    required: {
        en: 'required',
        name: '是否必填',
        type: 'checkbox'
    },
    disabled: {
        en: 'disabled',
        name: '是否禁止',
        type: 'checkbox'
    },
    title: {
        en: 'title',
        name: '标题',
        type: 'text'
    },
    tooltipTitle: {
        en: 'tooltipTitle',
        name: '提示标题',
        type: 'text'
    },
    tooltip: {
        en: 'tooltip',
        name: '提示内容',
        type: 'text'
    },
    triggerCls: {
        en: 'triggerCls',
        name: '触发器按钮Class',
        type: 'text'
    },
    onTriggerClick: {
        en: 'onTriggerClick',
        name: '触发方法', type: 'text'
    },

    clearIcon: {
        en: 'clearIcon',
        name: '清空按钮', type: 'checkbox'
    },
    handler: {
        en: 'handler',
        name: '触发事件', type: 'text'
    },
    text: {
        en: 'text', name: '显示名称', type: 'text'
    },
    matchFieldWidth: {
        en: 'matchFieldWidth', name: '下拉宽度匹配', type: 'checkbox'
    },
    editable: {
        en: 'editable', name: '是否可编辑', type: 'checkbox'
    },
    forceSelection: {
        en: 'forceSelection', name: '默认第一项', type: 'checkbox'
    },
    multiSelect: {
        en: 'multiSelect', name: '是否多选', type: 'checkbox'
    },
    multiSelectSeparator: {
        en: 'multiSelectSeparator', name: '多选分隔符', type: 'text'
    },
    maxPopHeight: {
        en: 'maxPopHeight', name: '弹出面板最大高度', type: 'number'
    },
    hiddenName: {
        en: 'hiddenName', name: '隐藏表单域Name', type: 'text'
    },
    checkboxSelect: {
        en: 'checkboxSelect', name: '显示复选框图标', type: 'checkbox'
    },
    group: {
        en: 'group', name: '启用分组', type: 'checkbox'
    },
    simulateTree: {

        en: 'simulateTree', name: '模拟树', type: 'checkbox'
    },
    topSpaceFirst: {

        en: 'topSpaceFirst', name: '上部弹出', type: 'checkbox'
    },
    cls: {

        en: 'cls', name: '附加样式', type: 'text'
    },
    grow: {

        en: 'grow', name: '自动扩展', type: 'checkbox'
    },
    growMin: {

        en: 'growMin', name: '自动扩展最小高度', type: 'number'
    },
    growMax: {

        en: 'growMax', name: '自动扩展最大高度', type: 'number'
    },
    format: {

        en: 'format', name: '日期格式化字符串', type: 'text'
    },
    theme: {
        en: 'theme', name: '主题(可填molv/grid/#xxxxxx)', type: 'text'
    },
    isInitValue: {

        en: 'isInitValue', name: '是否填充初始值', type: 'checkbox'
    },
    minValue: {

        en: 'minValue', name: '最小值', type: 'text'
    },
    maxValue: {
        en: 'maxValue', name: '最大值', type: 'text'
    },
    showTodayButton: {
        en: 'showTodayButton', name: '显示今天按钮', type: 'checkbox'
    },
    showClearButton: {
        en: 'showClearButton', name: '是否显示清空按钮', type: 'checkbox'
    },
    showConfirmButton: {
        en: 'showConfirmButton', name: '是否显示确定按钮', type: 'checkbox'
    },

    showBottom: {
        en: 'showBottom', name: '是否显示底部栏', type: 'checkbox'
    },
    range: {
        en: 'range', name: '时间区域选择', type: 'checkbox'
    },
    mark: {
        en: 'mark', name: '标注重要日子(日期:名称;)', type: 'text'
    },
    calendar: {
        en: 'calendar', name: '是否显示节日', type: 'checkbox'
    },
    dateType: {
        en: 'dateType', name: '时间类型', type: 'selectList',
        data: {
            date: {name: '日期选择器'},
            year: {name: '年选择器'},
            month: {name: '年月选择器'},
            time: {name: '时间选择器'},
            datetime: {name: '日期时间选择器'}
        }
    },
    position: {
        en: 'position', name: '定位方式', type: 'selectList',
        data: {
            abolute: {name: '绝对定位'},
            fixed: {name: '固定定位'},
            static: {name: '静态定位'},
        }
    },
    showTime: {

        en: 'showTime', name: '是否显示时间', type: 'checkbox'
    },
    showMinute: {

        en: 'showMinute', name: '是否显示分钟', type: 'checkbox'
    },
    showSecond: {

        en: 'showSecond', name: '是否显示秒钟', type: 'checkbox'
    },
    increment: {

        en: 'increment', name: '每个可选项间隔的分钟数', type: 'text'
    },
    noDecimal: {

        en: 'noDecimal', name: '禁止输入小数', type: 'checkbox'
    },
    noNegative: {

        en: 'noNegative', name: '禁止输入负数', type: 'checkbox'
    },
    decimalPrecision: {

        en: 'decimalPrecision', name: '允许小数时显示精度', type: 'checkbox'
    },
    commas: {

        en: 'commas', name: '是否启用千分位', type: 'checkbox'
    },
    round: {

        en: 'round', name: '是否启用四舍五入', type: 'checkbox'
    },
    trimEndZero: {

        en: 'trimEndZero', name: '是否去除小数位后面的零', type: 'checkbox'
    },
    checked: {

        en: 'checked', name: '复选框的选中状态', type: 'checkbox'
    },
    inputValue: {

        en: 'inputValue', name: '复选框input节点的value属性', type: 'text'
    },
    inputLabel: {

        en: 'inputValue', name: '复选框的标签', type: 'text'
    },
    columnNumber: {

        en: 'columnNumber', name: '几列显示', type: 'text'
    },
    autoColumnWidth: {

        en: 'autoColumnWidth', name: '自适应列宽度', type: 'text'
    },
    columnVertical: {

        en: 'columnVertical', name: '是否纵向排列', type: 'checkbox'
    },
    accept: {

        en: 'accept', name: '允许上传的文件类型', type: 'text'
    },
    buttonOnly: {

        en: 'buttonOnly', name: '是否只显示上传按钮', type: 'checkbox'
    },
    trigger1Cls: {

        en: 'trigger1Cls', name: '第一个触发图标样式类', type: 'text'
    },
    trigger2Cls: {

        en: 'trigger2Cls', name: '第二个触发图标样式类', type: 'text'
    },
    triggerHidden: {

        en: 'triggerHidden', name: '是否显示触发图标', type: 'checkbox'
    },
    trigger1Hidden: {

        en: 'trigger1Hidden', name: '是否显示第一个触发图标', type: 'checkbox'
    },
    trigger2Hidden: {

        en: 'trigger2Hidden', name: '是否显示第二个触发图标', type: 'checkbox'
    },
    inputType: {

        en: 'inputType', name: '文本输入框的类型', type: 'text'
    },
    emptyText: {

        en: 'emptyText', name: '值为空时显示的占位文本', type: 'text'
    },
    minLength: {

        en: 'minLength', name: '最小长度', type: 'text'
    },
    maxLength: {

        en: 'maxLength', name: '最大长度', type: 'text'
    },
    regexPattern: {

        en: 'regexPattern', name: '需要验证的正则表达式规则', type: 'text'
    },
    regex: {

        en: 'regex', name: '需要验证的正则表达式', type: 'text'
    },
    regexText: {

        en: 'regexText', name: '不满足正则表达式时的提示信息', type: 'text'
    },
    validateForValue: {

        en: 'validateForValue', name: '对值进行验证', type: 'text'
    },
    enterToSubmit: {

        en: 'enterToSubmit', name: '是否回车键提交表单', type: 'checkbox'
    },
    enterFocusControl: {

        en: 'enterFocusControl', name: '回车时需要聚焦的控件', type: 'text'
    },
    enterClickControl: {

        en: 'enterClickControl', name: '回车时需要点击的控件', type: 'text'
    },
    icon: {

        en: 'icon', name: '按钮图标', type: 'text'
    },
    scale: {

        en: 'scale', name: '按钮的大小', type: 'text'
    },
    enablePress: {

        en: 'enablePress', name: '是否启用按下状态', type: 'checkbox'
    },
    pressed: {

        en: 'pressed', name: '是否处于按下状态', type: 'checkbox'
    },
    iconFont: {

        en: 'iconFont', name: '按钮图标字体', type: 'text'
    },
    iconAlign: {

        en: 'iconAlign', name: '按钮图标的位置', type: 'text'
    },
    validateForm: {

        en: 'validateForm', name: '需要验证的表单', type: 'text'
    },
    validateForms: {

        en: 'validateForms', name: '需要验证的表单标识符数组', type: 'text'
    },
    validateTarget: {

        en: 'validateTarget', name: '验证失败时提示对话框的弹出位置', type: 'text'
    },
    validateMessageBox: {

        en: 'validateMessageBox', name: '验证失败时是否出现提示对话框', type: 'checkbox'
    },
    tabIndex: {
        en: 'tabIndex', name: 'TAB键导航的顺序', type: 'text'
    },
    zIndex: {
        en: 'zIndex',
        name: '层级', type: 'number'
    },
    layuiShow: {
        en: 'layuiShow',
        name: '是否默认显示', type: 'checkbox'
    }, tabHeight: {
        en: 'tabHeight',
        name: '标题高度', type: 'number'
    }, style: {
        en: 'style',
        name: '样式', type: 'text'
    },
    childType: {
        en: 'childType', name: '装载类型', type: 'selectList', data: {}
    },
    gridCode: {
        en: 'gridCode', name: '表格编号', type: 'text'
    }, rootTableId: {
        en: 'rootTableId', name: '主表ID字段名称', type: 'text'
    }, childRootTableId: {
        en: 'childRootTableId', name: '子表中的主表ID字段名称', type: 'text'
    }, childTableId: {
        en: 'childTableId', name: '子表ID', type: 'text'
    }, dataSourceUrl: {
        en: 'dataSourceUrl', name: '数据源URL', type: 'text'
    },
    filePathId: {
        en: 'filePathId', name: '文件夹ID', type: 'text'
    },
    updataType: {
        en: 'updataType', name: '上传类型', type: 'selectList', data: {aliyun: {name: '阿里云存储'}, local: {name: '本地存储'}}
    },
    isMultiSelection: {
        en: 'isMultiSelection', name: '是否多选', type: 'checkbox'
    },
    editor: {
        en: 'editor', name: '富文本框类型', type: 'text'
    },
    editorOptions: {
        en: 'editorOptions', name: '参数', type: 'text'
    }, collapsed: {
        en: "collapsed", name: '默认不展开', type: 'checkbox'
    }, collapsible: {
        en: "collapsible", name: "是否可折叠", type: "checkbox",
    }, superWidgetId: {
        en: "superWidgetId", name: "父容器ID", type: "text",
    }, layout: {
        en: "layout", name: "布局", type: "text",
    }, activeTabIndex: {
        en: "activeTabIndex", name: "激活第几个Tab", type: "number"
    }, tabPosition: {
        en: 'tabPosition',
        name: 'tab位置',
        type: 'selectList',
        data: {top: {name: '顶部'}, bottom: {name: '底部'}, right: {name: '右边'}, left: {name: '左边'}}
    }, readonly: {
        en: 'readonly',
        name: '是否只读',
        type: 'checkbox'
    }, disabled: {
        en: 'disabled',
        name: '是否禁止',
        type: 'checkbox'
    }, closable: {
        en: 'closable',
        name: '是否能关闭',
        type: 'checkbox'
    }, titleBgColor: {
        en: 'titleBgColor',
        name: '头部背景颜色',
        type: 'text'
    }, color: {
        en: 'color',
        name: '字体颜色',
        type: 'text'
    },
    tabNum: {
        en: 'tabNum',
        name: 'Tab数量',
        type: 'text'
    },
    /****事件部分****/
    onTriggerClick: {
        en: 'onTriggerClick',
        name: '触发方法', type: 'text'
    },

    listeners_beforehide: {en: 'listeners_beforehide', name: '隐藏控件之前事件 ', type: 'text'},
    listeners_beforeshow: {en: 'listeners_beforeshow', name: '显示控件之前事件 ', type: 'text'},
    listeners_blur: {
        en: 'listeners_blur', name: '失去焦点事件 ', type: 'text'
    }, listeners_change: {
        en: 'listeners_change', name: '值改变时事件 ', type: 'text'
    }, listeners_ready: {
        en: 'listeners_ready', name: '控件初始打开的回调 ', type: 'text'
    }, listeners_done: {
        en: 'listeners_done', name: '控件选择完毕后的回调 ', type: 'text'
    },
    listeners_dirtychange: {
        en: 'listeners_dirtychange', name: '字段值改变事件 ', type: 'text'
    }, listeners_enter: {
        en: 'listeners_enter', name: '按ENTER键事件 ', type: 'text'
    }, listeners_focus: {
        en: 'listeners_focus', name: '获取焦点事件 ', type: 'text'
    }, listeners_hide: {
        en: 'listeners_hide', name: '隐藏控件事件 ', type: 'text'
    }, listeners_layout: {
        en: 'listeners_layout', name: '布局控件时事件 ', type: 'text'
    }, listeners_render: {
        en: 'listeners_render', name: '渲染控件时事件 ', type: 'text'
    }, listeners_show: {
        en: 'listeners_show', name: '显示控件时事件 ', type: 'text'
    }, listeners_beforeclick: {
        en: 'listeners_beforeclick', name: '点击事件之前触发事件 ', type: 'text'
    }, listeners_click: {
        en: 'listeners_click', name: '点击时触发事件 ', type: 'text'
    }, listeners_select: {
        en: 'listeners_select', name: '选中日期时触发事件 ', type: 'text'
    }, listeners_trigger1click: {
        en: 'listeners_trigger1click', name: '点击第一个触发图标时触发事件', type: 'text'
    }, listeners_trigger2click: {
        en: 'listeners_trigger1click', name: '点击第二个触发图标时触发事件', type: 'text'
    }, listeners_triggerclick: {
        en: 'listeners_trigger1click', name: '点击触发图标时触发事件', type: 'text'
    }, listeners_cleariconclick: {
        en: 'listeners_trigger1click', name: '点击清空图标时触发事件', type: 'text'
    }, listeners_beforeselect: {
        en: 'listeners_trigger1click', name: '选中列表项之前触发事件', type: 'text'
    },

}

/****
 * 所有控件，必须要width、ID、name，heigth属性
 * @type {{button: {name: string, attr: *[]}, label: {name: string, attr: {}}, calendar: {name: string, attr: {}}, datepicker: {name: string, attr: {}}, timepicker: {name: string, attr: {}}, textbox: {name: string, attr: *[]}, triggerbox: {name: string, attr: *[]}, hidden: {name: string, attr: *[]}, numberbox: {name: string, attr: {}}, checkbox: {name: string, attr: {}}, checkboxlist: {name: string, attr: {}}, radiobutton: {name: string, attr: {}}, radiobuttonlist: {name: string, attr: {}}, fileupload: {name: string, attr: {}}, dropdownlist: {name: string, attr: *[]}, textarea: {name: string, attr: *[]}}}
 */
TYPE = {
    button: {
        name: '按钮',
        attr: [

            {
                name: ATTRS.type.en,
                val: 'button', show: true
            }, {
                name: ATTRS.superWidgetId.en,
                val: '', show: true
            }, {
                name: ATTRS.id.en,
                val: '666', show: true
            }, {
                name: ATTRS.height.en,
                val: 27, show: true
            }, {
                name: ATTRS.width.en,
                val: 100, show: true
            }, {
                name: ATTRS.fieldLabel.en,
                val: '未命名', show: true
            }, {
                name: ATTRS.labelWidth.en,
                val: 90, show: true
            }, {
                name: ATTRS.x.en,
                val: 0, show: true
            }, {
                name: ATTRS.y.en,
                val: 0, show: true
            }, {
                name: ATTRS.name.en,
                val: 'widget', show: true
            }, {
                name: ATTRS.text.en,
                val: '按钮', show: true
            }, {
                name: ATTRS.cls.en,
                val: 'widgetItem', show: true
            }, {
                name: ATTRS.tooltip.en,
                val: 0, show: true
            }, {
                name: ATTRS.tooltipTitle.en,
                val: 0, show: true
            }, {
                name: ATTRS.value.en,
                val: '', show: true
            }, {
                name: ATTRS.scale.en,
                val: 'normal', show: true
            }, {
                name: ATTRS.icon.en,
                val: '', show: true
            }, {
                name: ATTRS.iconFont.en,
                val: '', show: true
            }, {
                name: ATTRS.iconAlign.en,
                val: 'left', show: true
            }, {
                name: ATTRS.validateForm.en,
                val: '', show: true
            }, {
                name: ATTRS.validateForms.en,
                val: '', show: true
            }, {
                name: ATTRS.validateTarget.en,
                val: '_self', show: true
            }, {
                name: ATTRS.tabIndex.en,
                val: 0, show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }, {
                name: ATTRS.style.en,
                val: '', show: true
            }, {
                name: ATTRS.validateMessageBox.en,
                val: true, show: true
            }, {
                name: ATTRS.disabled.en,
                val: false, show: true
            }, {
                name: ATTRS.enablePress.en,
                val: false, show: true
            }, {
                name: ATTRS.pressed.en,
                val: false, show: true
            }, {
                name: ATTRS.tabIndex.en,
                val: '1', show: true
            }
        ],
        event: [
            {
                name: ATTRS.handler.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeclick.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_click.en,
                val: '', show: true
            }
        ]
    },
    label: {
        name: '标签', attr: [{
            name: ATTRS.type.en,
            val: 'label', show: true
        }, {
            name: ATTRS.superWidgetId.en,
            val: '', show: true
        }, {
            name: ATTRS.x.en,
            val: 0, show: true
        }, {
            name: ATTRS.y.en,
            val: 0, show: true
        }, {
            name: ATTRS.id.en,
            val: '666', show: true
        }, {
            name: ATTRS.width.en,
            val: 100, show: true
        }, {
            name: ATTRS.height.en,
            val: 27, show: true
        }, {
            name: ATTRS.fieldLabel.en,
            val: '未命名', show: true
        }, {
            name: ATTRS.labelWidth.en,
            val: 90, show: true
        }, {
            name: ATTRS.name.en,
            val: 'widget', show: true
        },
            {
                name: ATTRS.cls.en,
                val: 'widgetItem', show: true
            },
            {
                name: ATTRS.value.en,
                val: '', show: true
            }, {
                name: ATTRS.tabIndex.en,
                val: '1', show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }, {
                name: ATTRS.style.en,
                val: 0, show: true
            }
        ]
    },
    datepicker: {
        name: '日期控件',
        attr: [{
            name: ATTRS.type.en,
            val: 'calendar', show: true
        }, {
            name: ATTRS.superWidgetId.en,
            val: '', show: true
        }, {
            name: ATTRS.x.en,
            val: 0, show: true
        }, {
            name: ATTRS.y.en,
            val: 0, show: true
        }, {
            name: ATTRS.id.en,
            val: '666', show: true
        }, {
            name: ATTRS.width.en,
            val: 100, show: true
        }, {
            name: ATTRS.height.en,
            val: 27, show: true
        }, {
            name: ATTRS.fieldLabel.en,
            val: '未命名', show: true
        }, {
            name: ATTRS.labelWidth.en,
            val: 90, show: true
        }, {
            name: ATTRS.cls.en,
            val: 'widgetItem', show: true
        }, {
            name: ATTRS.format.en,
            val: 'yyyy-MM-dd', show: true
        }, {
            name: ATTRS.minValue.en,
            val: '', show: true
        }, {
            name: ATTRS.maxValue.en,
            val: '', show: true
        }, {
            name: ATTRS.value.en,
            val: '', show: true
        }, {
            name: ATTRS.theme.en,
            val: 'molv', show: true
        }, {
            name: ATTRS.dateType.en,
            val: 'date', show: true
        }, {
            name: ATTRS.position.en,
            val: 'abolute', show: true
        }, {
            name: ATTRS.showBottom.en,
            val: true, show: true
        }, {
            name: ATTRS.showClearButton.en,
            val: true, show: true
        }, {
            name: ATTRS.showConfirmButton.en,
            val: true, show: true
        }, {
            name: ATTRS.showTodayButton.en,
            val: true, show: true
        }, {
            name: ATTRS.calendar.en,
            val: true, show: true
        }, {
            name: ATTRS.mark.en,
            val: '0-0-1:One', show: true
        }, {
            name: ATTRS.tabIndex.en,
            val: '1', show: true
        }, {
            name: ATTRS.zIndex.en,
            val: 0, show: true
        }, {
            name: ATTRS.style.en,
            val: 0, show: true
        }, {
            name: ATTRS.readonly.en,//是否只读
            val: false, show: true
        }, {
            name: ATTRS.disabled.en,//是否禁止
            val: false, show: true
        }
        ],
        event: [
            {
                name: ATTRS.listeners_ready.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_done.en,
                val: '', show: true
            }

        ]

    },
    textbox: {
        name: '输入框',
        attr: [{
            name: ATTRS.type.en,
            val: 'textbox', show: true
        }, {
            name: ATTRS.superWidgetId.en,
            val: '', show: true
        }, {
            name: ATTRS.id.en,
            val: '666',
            show: true
        }, {
            name: ATTRS.name.en,
            val: 'widget', show: true
        }, {
            name: ATTRS.height.en,
            val: 27, show: true
        }, {
            name: ATTRS.width.en,
            val: 200, show: true
        }, {
            name: ATTRS.fieldLabel.en,
            val: '未命名', show: true
        }, {
            name: ATTRS.labelWidth.en,
            val: 90, show: true
        }, {
            name: ATTRS.x.en,
            val: 0, show: true
        }, {
            name: ATTRS.y.en,
            val: 0, show: true
        }, {
            name: ATTRS.value.en,
            val: '', show: true
        }, {
            name: ATTRS.cls.en,
            val: 'widgetItem', show: true
        }, {
            name: ATTRS.tooltip.en,
            val: 0, show: true
        }, {
            name: ATTRS.tooltipTitle.en,
            val: 0, show: true
        }, {
            name: ATTRS.validator.en,
            val: 0, show: true
        }, {
            name: ATTRS.inputType.en,
            val: 'text', show: false
        }, {
            name: ATTRS.emptyText.en,
            val: '', show: true
        },  {
            name: ATTRS.enterToSubmit.en,
            val: true, show: true
        }, {
            name: ATTRS.required.en,
            val: 0, show: true
        }, {
            name: ATTRS.readonly.en,
            val: false, show: true
        }, {
            name: ATTRS.disabled.en,
            val: false, show: true
        }, {
            name: ATTRS.redStar.en,
            val: false, show: true
        }, {
            name: ATTRS.clearIcon.en,
            val: false, show: true
        }, {
            name: ATTRS.tabIndex.en,
            val: '1', show: true
        }, {
            name: ATTRS.zIndex.en,
            val: 0, show: true
        }, {
            name: ATTRS.style.en,
            val: 0, show: true
        }
        ],
        event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_blur.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_enter.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_focus.en,
                val: '', show: true
            }]
    },
    triggerbox: {
        name: '自定义触发器输入框', attr: [{
            name: ATTRS.type.en,
            val: 'triggerbox', show: true
        }, {
            name: ATTRS.superWidgetId.en,
            val: '', show: true
        }, {
            name: ATTRS.x.en,
            val: 0, show: true
        }, {
            name: ATTRS.y.en,
            val: 0, show: true
        }, {
            name: ATTRS.id.en,
            val: '666', show: true
        }, {
            name: ATTRS.name.en,
            val: 'widget', show: true
        }, {
            name: ATTRS.height.en,
            val: 27, show: true
        }, {
            name: ATTRS.width.en,
            val: 200, show: true
        }, {
            name: ATTRS.fieldLabel.en,
            val: '未命名', show: true
        }, {
            name: ATTRS.labelWidth.en,
            val: 90, show: true
        }, {
            name: ATTRS.cls.en,
            val: 'widgetItem', show: true
        }, {
            name: ATTRS.trigger1Cls.en,
            val: 'triggericon1', show: true
        }, {
            name: ATTRS.trigger2Cls.en,
            val: '', show: true
        }, {
            name: ATTRS.value.en,
            val: '', show: true
        }, {
            name: ATTRS.selectBackCode.en,
            val: 'sTaa001', show: true
        }, {
            name: ATTRS.selectBackTargetField.en, val: '', show: true
        }, {
            name: ATTRS.selectBackLocalField.en, val: '', show: true
        }, {
            name: ATTRS.selectBackId.en,
            val: 'id字段名', show: false
        }, {
            name: ATTRS.selectBackName.en,
            val: 'name字段名', show: false
        }, {
            name: ATTRS.editable.en,
            val: false, show: true
        }, {
            name: ATTRS.enterToSubmit.en,
            val: true, show: true
        }, {
            name: ATTRS.required.en,
            val: 0, show: true
        }, {
            name: ATTRS.disabled.en,
            val: false, show: true
        }, {
            name: ATTRS.redStar.en,
            val: false, show: true
        }, {
            name: ATTRS.clearIcon.en,
            val: false, show: true
        }, {
            name: ATTRS.isSelectBack.en,
            val: true, show: true
        }, {
            name: ATTRS.triggerHidden.en,
            val: false, show: true
        }, {
            name: ATTRS.trigger1Hidden.en,
            val: false, show: true
        }, {
            name: ATTRS.trigger2Hidden.en,
            val: false, show: true
        }, {
            name: ATTRS.tabIndex.en,
            val: '1', show: true
        }, {
            name: ATTRS.zIndex.en,
            val: 0, show: true
        }, {
            name: ATTRS.style.en,
            val: 0, show: true
        }
        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_blur.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_enter.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_focus.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_trigger1click.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_trigger2click.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_triggerclick.en,
                val: '', show: true
            },
        ]
    },
    hidden: {
        name: '隐藏表单域', attr: [{
            name: ATTRS.type.en,
            val: 'hidden', show: true
        }, {
            name: ATTRS.id.en,
            val: '666', show: true
        }, {
            name: ATTRS.cls.en,
            val: 'widgetItem hidden', show: false
        }, {
            name: ATTRS.name.en,
            val: 'widget', show: true
        }, {
            name: ATTRS.value.en,
            val: '', show: true
        }
        ]
    },
    span: {
        name: '标签', attr: [{
            name: ATTRS.type.en,
            val: 'span', show: true
        }, {
            name: ATTRS.id.en,
            val: '666', show: true
        }, {
            name: ATTRS.superWidgetId.en,
            val: '', show: true
        }, {
            name: ATTRS.x.en,
            val: 0, show: true
        }, {
            name: ATTRS.y.en,
            val: 0, show: true
        }, {
            name: ATTRS.width.en,
            val: 100, show: true
        }, {
            name: ATTRS.height.en,
            val: 27, show: true
        }, {
            name: ATTRS.style.en,
            val: '', show: true
        }, {
            name: ATTRS.cls.en,
            val: 'layui-badge-rim', show: true
        }, {
            name: ATTRS.textAlign.en,
            val: 'center', show: true
        }, {
            name: ATTRS.VAlign.en,
            val: true, show: true
        }, {
            name: ATTRS.color.en,
            val: '#000', show: true
        }, {
            name: ATTRS.value.en,
            val: '', show: true
        }
        ], event: [{}]
    },
    numberbox: {
        name: '数字输入框', attr: [
            {
                name: ATTRS.type.en,
                val: 'numberbox', show: true
            }, {
                name: ATTRS.superWidgetId.en,
                val: '', show: true
            }, {
                name: ATTRS.x.en,
                val: 0, show: true
            }, {
                name: ATTRS.y.en,
                val: 0, show: true
            }, {
                name: ATTRS.id.en,
                val: '666', show: true
            }, {
                name: ATTRS.name.en,
                val: 'widget', show: true
            }, {
                name: ATTRS.width.en,
                val: 100, show: true
            }, {
                name: ATTRS.height.en,
                val: 27, show: true
            }, {
                name: ATTRS.fieldLabel.en,
                val: '未命名', show: true
            }, {
                name: ATTRS.labelWidth.en,
                val: 90, show: true
            },
            {
                name: ATTRS.cls.en,
                val: 'widgetItem', show: true
            },
            {
                name: ATTRS.minValue.en,
                val: '', show: true
            },
            {
                name: ATTRS.maxValue.en,
                val: '', show: true
            },
            {
                name: ATTRS.increment.en,
                val: 1, show: true
            }, {
                name: ATTRS.value.en,
                val: '', show: true
            },
            {
                name: ATTRS.commas.en,
                val: false, show: true
            },
            {
                name: ATTRS.round.en,
                val: true, show: true
            },
            {
                name: ATTRS.trimEndZero.en,
                val: true, show: true
            }, {
                name: ATTRS.noDecimal.en,
                val: false, show: true
            },
            {
                name: ATTRS.noNegative.en,
                val: false, show: true
            }, {
                name: ATTRS.decimalPrecision.en,
                val: 2, show: true
            }, {
                name: ATTRS.disabled.en,
                val: false, show: true
            }, {
                name: ATTRS.redStar.en,
                val: false, show: true
            }, {
                name: ATTRS.tabIndex.en,
                val: '1', show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }, {
                name: ATTRS.style.en,
                val: 0, show: true
            }
        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_blur.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_enter.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_focus.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_trigger1click.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_trigger2click.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_triggerclick.en,
                val: '', show: true
            },
        ]
    },
    checkbox: {
        name: '复选框', attr: [
            {
                name: ATTRS.id.en,
                val: '666', show: true
            }, {
                name: ATTRS.superWidgetId.en,
                val: '', show: true
            }, {
                name: ATTRS.x.en,
                val: 0, show: true
            }, {
                name: ATTRS.y.en,
                val: 0, show: true
            }, {
                name: ATTRS.width.en,
                val: 100, show: true
            }, {
                name: ATTRS.height.en,
                val: 27, show: true
            }, {
                name: ATTRS.width.en,
                val: 100, show: true
            }, {
                name: ATTRS.fieldLabel.en,
                val: '未命名', show: true
            }, {
                name: ATTRS.cls.en,
                val: 'widgetItem', show: true
            }, {
                name: ATTRS.type.en,
                val: 'checkbox', show: true
            }, {
                name: ATTRS.inputLabel.en,
                val: '', show: true
            }, {
                name: ATTRS.inputValue.en,
                val: '', show: true
            }, {
                name: ATTRS.value.en,
                val: '', show: true
            }, {
                name: ATTRS.checked.en,
                val: false, show: true
            }, {
                name: ATTRS.tabIndex.en,
                val: '1', show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }, {
                name: ATTRS.style.en,
                val: 0, show: true
            }

        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            },
            {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            },
        ]
    },
    checkboxlist: {
        name: '复选框列表', attr: [
            {
                name: ATTRS.id.en,
                val: '666', show: true
            }, {
                name: ATTRS.superWidgetId.en,
                val: '', show: true
            }, {
                name: ATTRS.x.en,
                val: 0, show: true
            }, {
                name: ATTRS.y.en,
                val: 0, show: true
            }, {
                name: ATTRS.width.en,
                val: 100, show: true
            }, {
                name: ATTRS.height.en,
                val: 27, show: true
            }, {
                name: ATTRS.fieldLabel.en,
                val: '未命名', show: true
            }, {
                name: ATTRS.labelWidth.en,
                val: 90, show: true
            }, {
                name: ATTRS.cls.en,
                val: 'widgetItem', show: true
            }, {
                name: ATTRS.type.en,
                val: 'checkboxlist', show: true
            }, {
                name: ATTRS.columnNumber.en,
                val: 'auto', show: true
            }, {
                name: ATTRS.autoColumnWidth.en,
                val: false, show: true
            }, {
                name: ATTRS.value.en,
                val: '', show: true
            }, {
                name: ATTRS.columnVertical.en,
                val: false, show: true
            }, {
                name: ATTRS.required.en,
                val: false, show: true
            }, {
                name: ATTRS.tabIndex.en,
                val: '1', show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }, {
                name: ATTRS.style.en,
                val: 0, show: true
            }
        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }
        ]
    },
    radiobutton: {
        name: '单选框', attr: [{
            name: ATTRS.type.en,
            val: 'radiobutton', show: true
        }, {
            name: ATTRS.superWidgetId.en,
            val: '', show: true
        }, {
            name: ATTRS.x.en,
            val: 0, show: true
        }, {
            name: ATTRS.y.en,
            val: 0, show: true
        }, {
            name: ATTRS.id.en,
            val: '666', show: true
        }, {
            name: ATTRS.width.en,
            val: 100, show: true
        }, {
            name: ATTRS.height.en,
            val: 27, show: true
        }, {
            name: ATTRS.fieldLabel.en,
            val: '未命名', show: true
        }, {
            name: ATTRS.labelWidth.en,
            val: 90, show: true
        }, {
            name: ATTRS.cls.en,
            val: 'widgetItem', show: true
        }, {
            name: ATTRS.value.en,
            val: '', show: true
        }, {
            name: ATTRS.tabIndex.en,
            val: '1', show: true
        }, {
            name: ATTRS.zIndex.en,
            val: 0, show: true
        }, {
            name: ATTRS.style.en,
            val: 0, show: true
        }
        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }
        ]
    },
    radiobuttonlist: {
        name: '单选框列表', attr: [{
            name: ATTRS.type.en,
            val: 'radiobuttonlist', show: true
        }, {
            name: ATTRS.superWidgetId.en,
            val: '', show: true
        }, {
            name: ATTRS.x.en,
            val: 0, show: true
        }, {
            name: ATTRS.y.en,
            val: 0, show: true
        }, {
            name: ATTRS.id.en,
            val: '666', show: true
        }, {
            name: ATTRS.width.en,
            val: 100, show: true
        }, {
            name: ATTRS.height.en,
            val: 27, show: true
        }, {
            name: ATTRS.fieldLabel.en,
            val: '未命名', show: true
        }, {
            name: ATTRS.labelWidth.en,
            val: 90, show: true
        }, {
            name: ATTRS.cls.en,
            val: 'widgetItem', show: true
        }, {
            name: ATTRS.dict.en,
            val: 0, show: true
        }, {
            name: ATTRS.value.en,
            val: '', show: true
        }, {
            name: ATTRS.tabIndex.en,
            val: '1', show: true
        }, {
            name: ATTRS.zIndex.en,
            val: 0, show: true
        }, {
            name: ATTRS.style.en,
            val: 0, show: true
        }
        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }
        ]
    },
    dropdownlist: {
        name: '下拉列表', attr: [{
            name: ATTRS.type.en,
            val: 'dropdownlist', show: true
        }, {
            name: ATTRS.superWidgetId.en,
            val: '', show: true
        }, {
            name: ATTRS.id.en,
            val: '666', show: true
        }, {
            name: ATTRS.width.en,
            val: 200, show: true
        }, {
            name: ATTRS.height.en,
            val: 27, show: true
        }, {
            name: ATTRS.fieldLabel.en,
            val: '未命名', show: true
        }, {
            name: ATTRS.labelWidth.en,
            val: 90, show: true
        }, {
            name: ATTRS.dict.en,
            val: 0, show: true
        }, {
            name: ATTRS.name.en,
            val: 'widget', show: true
        },  {
            name: ATTRS.maxPopHeight.en,
            val: '300', show: true
        }, {
            /*默认值，默认第几项*/
            name: ATTRS.value.en,
            val: 0, show: true
        }, {
            name: 'cls',
            val: 'widgetItem', show: true
        }, {
            name: ATTRS.x.en,
            val: 0, show: true
        }, {
            name: ATTRS.y.en,
            val: 0, show: true
        },  {
            name: ATTRS.editable.en,//是否可编辑
            val: false, show: true
        }, {
            name: ATTRS.topSpaceFirst.en,
            val: false, show: true
        },{
            name: ATTRS.tabIndex.en,
            val: '1', show: true
        }, {
            name: ATTRS.zIndex.en,
            val: 0, show: true
        }, {
            name: ATTRS.style.en,
            val: 0, show: true
        }
        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_blur.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_enter.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_focus.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_trigger1click.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_trigger2click.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_triggerclick.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeselect.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_select.en,
                val: '', show: true
            },
        ]
    },
    textarea: {
        name: '文本域', attr: [
            {
                name: ATTRS.type.en,
                val: 'textarea', show: true
            }, {
                name: ATTRS.superWidgetId.en,
                val: '', show: true
            }, {
                name: ATTRS.x.en,
                val: 0, show: true
            }, {
                name: ATTRS.y.en,
                val: 0, show: true
            }, {
                name: ATTRS.id.en,
                val: '666', show: true
            }, {
                name: ATTRS.width.en,
                val: 200, show: true
            }, {
                name: ATTRS.height.en,
                val: 100, show: true
            }, {
                name: ATTRS.fieldLabel.en,
                val: '未命名', show: true
            }, {
                name: ATTRS.labelWidth.en,
                val: 90, show: true
            }, {
                name: ATTRS.name.en,
                val: 'widget', show: true
            }, {
                name: ATTRS.growMin.en,
                val: 100, show: true
            }, {
                name: ATTRS.cls.en,
                val: 'widgetItem', show: true
            }, {
                name: ATTRS.value.en,
                val: '', show: true
            }, {
                name: ATTRS.grow.en,
                val: false, show: true
            }, {
                name: ATTRS.tooltip.en,
                val: 0, show: true
            }, {
                name: ATTRS.tooltipTitle.en,
                val: 0, show: true
            }, {
                name: ATTRS.validator.en,
                val: 0, show: true
            }, {
                name: ATTRS.inputType.en,
                val: 'text', show: false
            }, {
                name: ATTRS.emptyText.en,
                val: '', show: true
            }, {
                name: ATTRS.minLength.en,
                val: 0, show: true
            }, {
                name: ATTRS.maxLength.en,
                val: 99999, show: true
            }, {
                name: ATTRS.regexPattern.en,
                val: '', show: true
            }, {
                name: ATTRS.regex.en,
                val: '', show: true
            }, {
                name: ATTRS.regexText.en,
                val: '', show: true
            }, {
                name: ATTRS.validateForValue.en,
                val: false, show: true
            }, {
                name: ATTRS.enterFocusControl.en,
                val: '', show: true
            }, {
                name: ATTRS.enterClickControl.en,
                val: '', show: true
            }, {
                name: ATTRS.editable.en,
                val: true, show: true
            }, {
                name: ATTRS.enterToSubmit.en,
                val: true, show: true
            }, {
                name: ATTRS.required.en,
                val: 0, show: true
            }, {
                name: ATTRS.disabled.en,
                val: false, show: true
            }, {
                name: ATTRS.growMax.en,
                val: 600, show: true
            }, {
                name: ATTRS.redStar.en,
                val: false, show: true
            }, {
                name: ATTRS.clearIcon.en,
                val: false, show: true
            }, {
                name: ATTRS.tabIndex.en,
                val: '1', show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }, {
                name: ATTRS.style.en,
                val: 0, show: true
            }
        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_blur.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_enter.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_focus.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            },
        ]
    },
    hyperlink: {
        name: '超链接', attr: [], event: []
    },
    panel: {
        name: '容器', attr: [
            {
                name: ATTRS.type.en,
                val: 'panel', show: true
            }, {
                name: ATTRS.superWidgetId.en,
                val: '', show: true
            }, {
                name: ATTRS.x.en,
                val: 0, show: true
            }, {
                name: ATTRS.y.en,
                val: 0, show: true
            }, {
                name: ATTRS.childType.en,
                val: 'grid', show: true
            }, {
                name: ATTRS.id.en,
                val: 'grid666', show: true
            }, {
                name: ATTRS.width.en,
                val: 200, show: true
            }, {
                name: ATTRS.height.en,
                val: 100, show: true
            }, {
                name: ATTRS.cls.en,
                val: 'widgetItem ', show: true
            }, {
                name: ATTRS.name.en,
                val: 'widget', show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }
        ], event: []
    },
    panel_grid: {
        name: '数据表格', attr: [
            {//grid 编号
                name: ATTRS.gridCode.en,
                val: '', show: true
            }, {
                name: ATTRS.rootTableId.en,
                val: '', show: true
            }, {
                name: ATTRS.childRootTableId.en,
                val: '', show: true
            }, {
                name: ATTRS.childTableId.en,
                val: '', show: true
            }, {
                name: ATTRS.dataSourceUrl.en,
                val: '', show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }, {
                name: ATTRS.style.en,
                val: 0, show: true
            }
        ], event: [{
            name: ATTRS.listeners_beforehide.en,
            val: '', show: true
        }]
    },
    panel_upload: {
        name: '附件上传控件', attr: [
            {//文件上传
                name: ATTRS.filePathId.en,
                val: '', show: true
            }, {
                name: ATTRS.updataType.en,
                val: 'local', show: true
            }, {
                name: ATTRS.isMultiSelection.en,
                val: true, show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }, {
                name: ATTRS.style.en,
                val: 0, show: true
            }

        ], event: []
    },
    panel_htmleditor: {
        name: '富文本框', attr: [/*{
            name: ATTRS.type.en,
            val: 'htmleditor', show: true
        }*/ {
            name: ATTRS.x.en,
            val: 0, show: true
        }, {
            name: ATTRS.y.en,
            val: 0, show: true
        }, {
            name: ATTRS.id.en,
            val: '666', show: true
        }, {
            name: ATTRS.width.en,
            val: 100, show: true
        }, {
            name: ATTRS.height.en,
            val: 27, show: true
        }, {
            name: ATTRS.fieldLabel.en,
            val: '未命名', show: true
        }, {
            name: ATTRS.labelWidth.en,
            val: 90, show: true
        }, {
            name: ATTRS.editor.en,
            val: 'ueditor', show: true
        }, {
            name: ATTRS.cls.en,
            val: 'widgetItem', show: true
        }, {
            name: ATTRS.value.en,
            val: '', show: true
        }, {
            name: ATTRS.zIndex.en,
            val: 0, show: true
        }, {
            name: ATTRS.style.en,
            val: 0, show: true
        }
        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }]
    },
    grouppanel: {
        name: '折叠面板', attr: [
            {
                name: ATTRS.type.en,
                val: 'grouppanel', show: true
            }, {
                name: ATTRS.superWidgetId.en,
                val: '', show: true
            }, {
                name: ATTRS.x.en,
                val: 0, show: true
            }, {
                name: ATTRS.y.en,
                val: 0, show: true
            }, {
                name: ATTRS.id.en,
                val: '666', show: true
            }, {
                name: ATTRS.width.en,
                val: 300, show: true
            }, {
                name: ATTRS.height.en,
                val: 300, show: true
            }, {
                name: ATTRS.cls.en,
                val: 'widgetItem', show: true
            }, {
                name: ATTRS.collapsed.en,
                val: false, show: true
            }, {
                name: ATTRS.collapsible.en,
                val: true, show: true
            }, {
                name: ATTRS.tabNum.en,//tab数量
                val: 0, show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }
        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }]
    },
    grouppanelTab: {
        name: 'grouppanelTab', attr: [
            {
                name: ATTRS.id.en,
                val: '666', show: true
            }, {
                name: ATTRS.type.en,
                val: 'tab', show: true
            }, {
                name: ATTRS.cls.en,
                val: '', show: true
            }, {
                name: ATTRS.title.en,
                val: '未命名', show: true
            }, {
                name: ATTRS.height.en,
                val: 300, show: true
            }, {
                name: ATTRS.tabHeight.en,
                val: 35, show: true
            }, {
                name: ATTRS.layuiShow.en,//是否默认展开
                val: false, show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 1001, show: true
            },
        ],
        event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }]
    },
    tabstrip: {
        name: '选项卡面板', attr: [
            {
                name: ATTRS.type.en,
                val: 'tabstrip', show: true
            }, {
                name: ATTRS.superWidgetId.en,
                val: '', show: true
            }, {
                name: ATTRS.x.en,
                val: 0, show: true
            }, {
                name: ATTRS.y.en,
                val: 0, show: true
            }, {
                name: ATTRS.id.en,
                val: '666', show: true
            }, {
                name: ATTRS.width.en,
                val: 300, show: true
            }, {
                name: ATTRS.height.en,
                val: 300, show: true
            }, {
                name: ATTRS.cls.en,
                val: 'widgetItem', show: true
            }, {
                name: ATTRS.titleBgColor.en,
                val: '#fff', show: true
            }, {
                name: ATTRS.closable.en,
                val: true, show: true
            }, {
                name: ATTRS.layout.en,
                val: 'absolute', show: true
            }, {
                name: ATTRS.zIndex.en,
                val: 0, show: true
            }, {
                name: ATTRS.tabNum.en,//tab数量
                val: 0, show: true
            }, {
                name: ATTRS.activeTabIndex.en,
                val: '0', show: true
            }
        ], event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }],
    },
    tab: {
        name: 'tab', attr: [
            {
                name: ATTRS.id.en,
                val: '666', show: true
            }, {
                name: ATTRS.type.en,
                val: 'tab', show: true
            }, {
                name: ATTRS.cls.en,
                val: 'widgetItem', show: true
            }, {
                name: ATTRS.height.en,
                val: 300, show: true
            }, {
                name: ATTRS.title.en,
                val: '未命名', show: true
            }, {
                name: ATTRS.layuiShow.en,
                val: false, show: true
            }
        ],
        event: [
            {
                name: ATTRS.listeners_beforehide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_beforeshow.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_change.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_dirtychange.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_hide.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_layout.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_render.en,
                val: '', show: true
            }, {
                name: ATTRS.listeners_show.en,
                val: '', show: true
            }]
    }
}
childTYPE = {
    grid: {
        name: '数据表格',
        cls: 'grid'
    },
    upload: {
        name: '上传控件',
        cls: 'upload'
    },
    htmleditor: {
        name: '富文本框',
        cls: 'htmleditor'
    }

}
ATTRS.type.data = TYPE;
ATTRS.childType.data = childTYPE;

window.MENUS = [
    {
        text: '表单控件',
        icon: './res/icon/application_form.png', expanded: true,
        children: [
            {
                text: '基础控件', expanded: true,
                children: [{
                    cls: 'widget',
                    id: 'button',
                    text: '按钮',
                }, {
                    cls: 'widget',
                    id: 'label',
                    text: '标签',
                }, {
                    cls: 'widget',
                    id: 'calendar',
                    text: '日期控件',
                }, {
                    cls: 'widget',
                    id: 'datepicker',
                    text: '日期选择框',
                }, {
                    cls: 'widget',
                    id: 'timepicker',
                    text: '时间选择框',
                }, {
                    cls: 'widget',
                    id: 'textbox',
                    text: '输入框',
                }, {
                    cls: 'widget',
                    id: 'triggerbox',
                    text: '自定义触发器输入框',
                }, {
                    cls: 'widget',
                    id: 'hidden',
                    text: '隐藏表单域'
                }, {
                    cls: 'widget',
                    id: 'numberbox',
                    text: '数字输入框',
                }, {
                    cls: 'widget',
                    id: 'checkbox',
                    text: '复选框',
                }, {
                    cls: 'widget',
                    id: 'checkboxlist',
                    text: '复选框列表',
                }, {
                    cls: 'widget',
                    id: 'radiobutton',
                    text: '单选框',
                }, {
                    cls: 'widget',
                    id: 'radiobuttonlist',
                    text: '单选框列表',
                }, {
                    cls: 'widget',
                    id: 'fileupload',
                    text: '上传控件',
                }, {
                    cls: 'widget',
                    id: 'dropdownlist',
                    text: '下拉列表',
                }, {
                    cls: 'widget',
                    id: 'textarea',
                    text: '文本域'
                }, {
                    cls: 'widget',
                    id: 'hyperlink',
                    text: '超链接'
                }, {
                    cls: 'widget',
                    id: 'panel_htmleditor',
                    text: '富文本框',
                }]
            },
            {
                expanded: true,
                text: '表格控件',
                children: [{
                    cls: 'widget',
                    id: 'panel_grid',
                    text: '数据表格',
                }]
            },
            {
                expanded: true,
                text: '文件上传',
                children: [{
                    cls: 'widget',
                    id: 'panel_upload',
                    text: '文件上传',
                }]
            },
            {
                expanded: true,
                text: '面板',
                children: [{
                    cls: 'widget',
                    id: 'grouppanel',
                    text: '分组面板',
                }, {
                    cls: 'widget',
                    id: 'tabstrip',
                    text: '选项卡面板',
                }]
            }
        ]
    }];